<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>第五个-条件判断</title>
</head>
<body>

    <h1 th:if="${flag=='yes'}">等于</h1>
    <h1 th:unless="${flag=='no'}">不等于</h1>

    <div th:switch="${menu}">
        <p th:case="'admin'">admin</p>
        <p th:case="${manager}">manager</p>
    </div>
</body>

</body>
</html>